package com.linkwings.projectsimple.dao.impl;

import java.util.List;

import com.linkwings.projectsimple.dao.UserinfoDao;
import com.linkwings.projectsimple.pojo.Book;
import com.linkwings.projectsimple.pojo.Bookcat;
import com.linkwings.projectsimple.pojo.SampleUser;
import com.linkwings.dbTemp.HibernateEntityDaoImpl;
public class UserInfoDaoImpl  extends HibernateEntityDaoImpl implements  UserinfoDao{

	public List<SampleUser> findListUser() {
		return this.findDataList("from SampleUser", null);
	}

	public SampleUser findUserById(int id) {
		return (SampleUser)this.findObjectByPk(id,SampleUser.class);
	}

	public Bookcat findBCByID(int id){
		return (Bookcat)this.findObjectByPk(id,Bookcat.class);
	}
	
	public Book findBookByID(int id){
		return (Book)this.findObjectByPk(id,Book.class);
	}
	
}
